﻿/*
 * Created by: Ahmedzhanov Nail,400,438534,,J2EE
 * Created: Sunday, February 25, 2007
 */

using Shop.Business.Domain.Orders.Logic;

namespace Shop.Business.Domain.Orders.Logic
{
    public interface IOperation
    {

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        bool IsAllowed();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        void Execute(OrderController.OperationContext context);

        /// <summary>
        /// may return null
        /// </summary>
        /// <returns></returns>
        IRestriction GetRestriction();
    }
}